<script setup>
import { useRouter } from 'vue-router';

const router = useRouter();
const { params, query } = this.$route;
const { path } = params;
router.replace({ path: `/${path}`, query });
// function render(h) {
//   return h(); // avoid warning message
// }
</script>
